package oop.ex2.tokenizer;

import oop.ex2.expression.ExpressionNode;
import oop.ex2.expression.ExpFunctionNode;

/**
 * Searches for an exponential function.
 * @author daniel_i_l
 *
 */
public class ExpAnalyzer extends FunctionAnalyzer {
	private static final String PATTERN = "EXP";
	
	/**
	 * Construct a function analyzer.
	 */
	public ExpAnalyzer() {
		super(PATTERN);
	}

	@Override
	public ExpressionNode getExpressionNode() {
		return new ExpFunctionNode(_matchedString);
	}

}
